
const models = {

  'mrp.production': {
    extend: BaseClass => {
      class cls extends BaseClass {
      }

      cls.action_assign = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'action_assign',
          args: [ id ],
          kwargs,
        }, fields );
      }

      cls.button_plan = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'button_plan',
          args: [ id ],
          kwargs,
        }, fields );
      }

      cls.action_cancel = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'action_cancel',
          args: [ id ],
          kwargs,
        }, fields );
      }

      cls.post_inventory = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'post_inventory',
          args: [ id ],
          kwargs,
        }, fields );
      }

      cls.button_mark_done = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'button_mark_done',
          args: [ id ],
          kwargs,
        }, fields );
      }

      cls.button_unreserve = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'button_mark_done',
          args: [ id ],
          kwargs,
        }, fields );
      }

      return cls;
    },
  },

};


export default {
  models,
};

